package com.sky.mapper;

import com.sky.dto.DishDTO;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**插入口味*/
    void insertFlavo(List<DishFlavor> list);
    /**删除口味*/
    void deleteByFlavorIds(List ids);

/**根据id查询口味信息*/
    @Select("select * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> deleteByFlavorId(Long id);

/**删除口味*/
    @Delete("delete from dish_flavor where dish_id = #{id}")
    void deleteflavors(Long id);



}
